%% @author me
%% @doc @todo Add description to shop1.


-module(shop1).

%% ====================================================================
%% API functions
%% ====================================================================
-export([total/1]).

total([{What,N}|T])->shop:cost(What)*N+total(T);
total([])->0.

%% ====================================================================
%% Internal functions
%% ====================================================================


